#ifndef _RSS_UI_LOGIN_H_
#define _RSS_UI_LOGIN_H_
#include "Rss_UI_Base.h"
#include "../resource.h"

#define KEY_PAD_HEIGHT 350

class Rss_UI_Login : public Rss_UI_Base
{
public:
	class Rss_UiSingleLineEdit : public UiSingleLineEdit{
	public:
		virtual void OnFocused(UiWin *pWinPrev);
		virtual void OnLostFocus(UiWin *pWinNext);
	};

	class Rss_UiPasswordEdit : public UiPasswordEdit{
	private:
		UiPasswordKeypad keypad;
	public:
		Rss_UiPasswordEdit();
		virtual void OnFocused(UiWin *pWinPrev);
		virtual void OnLostFocus(UiWin *pWinNext);
	};

	class Rss_UiScrollWin : public UiScrollWin{
	private:
		ImageContainer m_ImageContainer;
		ImagingHelper* pimg;
	public:
		Rss_UiScrollWin();
		virtual void  PaintWin (HDC hdcDst, RECT *prcWin, RECT *prcUpdate);
	};
private:
	Rss_UiSingleLineEdit uid_edit;
	Rss_UiPasswordEdit pwd_edit;
	UiToolbar_Text m_Toolbar;
	Rss_UiScrollWin m_ScrollWin;

public:
	virtual void Hide();
	virtual void Show();
	virtual LRESULT MzDefWndProc(UINT message, WPARAM wParam, LPARAM lParam);
	virtual void OnMzCommand(WPARAM wParam, LPARAM lParam);
};
#endif
